#Requires AutoHotkey v2.0

global curseKey := 0

switchMouseMod() {
  global curseKey := !curseKey
  if curseKey {
    Run(A_WorkingDir . "\component\curseKey.ahk")
    OnlyInput.fixedTip("开启" )
  } else {
    DetectHiddenWindows(true)
    PostMessage(0x111, 65307, 0,, A_WorkingDir "\component\curseKey.ahk")
    OnlyInput.fixedTip("关闭", 1000)
  } 
  DetectHiddenWindows(true)
  PostMessage(5,,,, A_WorkingDir "\component\toggleCaseConversion.ahk")
}

